package com.yb.core.annotation;

import com.yb.core.annotation.repeatable.Encrypts;
import com.yb.core.constant.SecureConstant;

import java.lang.annotation.*;

/**
 * Copyright (C), 2022-2022, 姚兵
 * Author: 32210
 * Date: 2022/12/9 19:34
 * FileName: Encrypt
 * Description:
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Repeatable(Encrypts.class)
public @interface Encrypt {
    SecureConstant.Algorithm algorithm() default SecureConstant.Algorithm.RSA;
    String[] fields();
}
